package com.ruoyi.neusoft.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.neusoft.mapper.AiIdentifyVideoUploadTMapper;
import com.ruoyi.neusoft.domain.AiIdentifyVideoUploadT;
import com.ruoyi.neusoft.service.IAiIdentifyVideoUploadTService;
import com.ruoyi.common.core.text.Convert;

/**
 * 算法模型-视频管理Service业务层处理
 * 
 * @author AI
 * @date 2023-12-06
 */
@Service
public class AiIdentifyVideoUploadTServiceImpl implements IAiIdentifyVideoUploadTService 
{
    @Autowired
    private AiIdentifyVideoUploadTMapper aiIdentifyVideoUploadTMapper;

    /**
     * 查询算法模型-视频管理
     * 
     * @param videoId 算法模型-视频管理主键
     * @return 算法模型-视频管理
     */
    @Override
    public AiIdentifyVideoUploadT selectAiIdentifyVideoUploadTByVideoId(Long videoId)
    {
        return aiIdentifyVideoUploadTMapper.selectAiIdentifyVideoUploadTByVideoId(videoId);
    }

    /**
     * 查询算法模型-视频管理列表
     * 
     * @param aiIdentifyVideoUploadT 算法模型-视频管理
     * @return 算法模型-视频管理
     */
    @Override
    public List<AiIdentifyVideoUploadT> selectAiIdentifyVideoUploadTList(AiIdentifyVideoUploadT aiIdentifyVideoUploadT)
    {
        return aiIdentifyVideoUploadTMapper.selectAiIdentifyVideoUploadTList(aiIdentifyVideoUploadT);
    }

    /**
     * 新增算法模型-视频管理
     * 
     * @param aiIdentifyVideoUploadT 算法模型-视频管理
     * @return 结果
     */
    @Override
    public int insertAiIdentifyVideoUploadT(AiIdentifyVideoUploadT aiIdentifyVideoUploadT)
    {
        aiIdentifyVideoUploadT.setCreateTime(DateUtils.getNowDate());
        return aiIdentifyVideoUploadTMapper.insertAiIdentifyVideoUploadT(aiIdentifyVideoUploadT);
    }

    /**
     * 修改算法模型-视频管理
     * 
     * @param aiIdentifyVideoUploadT 算法模型-视频管理
     * @return 结果
     */
    @Override
    public int updateAiIdentifyVideoUploadT(AiIdentifyVideoUploadT aiIdentifyVideoUploadT)
    {
        aiIdentifyVideoUploadT.setUpdateTime(DateUtils.getNowDate());
        return aiIdentifyVideoUploadTMapper.updateAiIdentifyVideoUploadT(aiIdentifyVideoUploadT);
    }

    /**
     * 批量删除算法模型-视频管理
     * 
     * @param videoIds 需要删除的算法模型-视频管理主键
     * @return 结果
     */
    @Override
    public int deleteAiIdentifyVideoUploadTByVideoIds(String videoIds)
    {
        return aiIdentifyVideoUploadTMapper.deleteAiIdentifyVideoUploadTByVideoIds(Convert.toStrArray(videoIds));
    }

    /**
     * 删除算法模型-视频管理信息
     * 
     * @param videoId 算法模型-视频管理主键
     * @return 结果
     */
    @Override
    public int deleteAiIdentifyVideoUploadTByVideoId(Long videoId)
    {
        return aiIdentifyVideoUploadTMapper.deleteAiIdentifyVideoUploadTByVideoId(videoId);
    }
}
